var { mongoose } = require('../db/dbtype.js');
var usersSchema = new mongoose.Schema({
    image: Buffer, // 存储二进制图像数据
    username: { type: String, required: true, unique: true },
    password: { type: String, required: true },
    phone: { type: String, required: true, unique: true },
    createdAt: { type: Date, default: Date.now },
    updatedAt: { type: Date, default: Date.now },
});

var Users = mongoose.model('Users', usersSchema, 'users');
module.exports = Users;